package com.ruoyi.project.datamanagement.service;

import java.util.List;

import com.ruoyi.framework.web.domain.TreeSelect;
import com.ruoyi.project.datamanagement.domain.SysSearchTree;
import com.ruoyi.project.system.domain.SysDept;

/**
 * 查询树Service接口
 * 
 * @author anan
 * @date 2021-03-31
 */
public interface ISysSearchTreeService 
{
    /**
     * 查询查询树
     * 
     * @param searchTreeId 查询树ID
     * @return 查询树
     */
    public SysSearchTree selectSysSearchTreeById(Long searchTreeId);

    /**
     * 查询查询树列表
     * 
     * @param sysSearchTree 查询树
     * @return 查询树集合
     */
    public List<SysSearchTree> selectSysSearchTreeList(SysSearchTree sysSearchTree);

    /**
     * 新增查询树
     * 
     * @param sysSearchTree 查询树
     * @return 结果
     */
    public int insertSysSearchTree(SysSearchTree sysSearchTree);

    /**
     * 修改查询树
     * 
     * @param sysSearchTree 查询树
     * @return 结果
     */
    public int updateSysSearchTree(SysSearchTree sysSearchTree);

    /**
     * 批量删除查询树
     * 
     * @param searchTreeIds 需要删除的查询树ID
     * @return 结果
     */
    public int deleteSysSearchTreeByIds(Long[] searchTreeIds);

    /**
     * 删除查询树信息
     * 
     * @param searchTreeId 查询树ID
     * @return 结果
     */
    public int deleteSysSearchTreeById(Long searchTreeId);


    /**
     * 构建前端所需要下拉树结构
     *
     * @param searchTrees 部门列表
     * @return 下拉树结构列表
     */
    public List<TreeSelect> buildSearchTreeSelect(List<SysSearchTree> searchTrees);
}
